/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.proyectofinal.ramas.domain;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;

/**
 *
 * @author nicolas
 */
@Entity
@Table(name = "Company")
public class Company implements Serializable {
    
    @Id
    @Column(name = "companyID")
    @GeneratedValue
    private Integer companyID;

    @Column(name = "name",length=50)
    private String name;

    @JoinColumn(name = "companyStatusID")
    @ManyToOne
    private CompanyStatus companyStatus;
    
    @Column(name = "loadDate")
    @Temporal(javax.persistence.TemporalType.TIMESTAMP)
    private Date loadDate;

    public Integer getCompanyID() {
        return companyID;
    }

    public void setCompanyID(Integer companyID) {
        this.companyID = companyID;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public CompanyStatus getCompanyStatus() {
        return companyStatus;
    }

    public void setCompanyStatus(CompanyStatus companyStatus) {
        this.companyStatus = companyStatus;
    }

    public Date getLoadDate() {
        return loadDate;
    }

    public void setLoadDate(Date loadDate) {
        this.loadDate = loadDate;
    }
}
